package com.bawei.module_journal.insert.model

import com.bawei.library_net.RetrofitManager
import com.bawei.module_journal.insert.entity.RequestEntity
import com.bw.journal.insert.entity.JournalInsertResponseEntity



class JournalInsertService {
    private val api:JournalInsertApi
    init {
        api = RetrofitManager.instance.create(JournalInsertApi::class.java)
    }


    suspend fun insertJournal(requestEntity: RequestEntity): JournalInsertResponseEntity{
        return api.insertJournal(requestEntity)
    }
}